#include <iostream>
#include "string"
#include "sm4.h"

using namespace std;

int main() {

    string plain = "01234567seghrfujkwsehukrftseuikfg";
    string mk = "0123456789abcdeffedcba9876543210";
//    vector<string> rk_list;
//    key_expand(hex_bin(mk), rk_list);
    string cipher;

    cipher = sm4_encrypt(plain, mk, 4);
    cout << cipher << endl;
    string text = sm4_decrypt(cipher, mk, 4);
    cout << text << endl;

    return 0;
}
